package com.tentative.competition.common.core.result;

import java.util.ArrayList;
import java.util.List;

public class PageResult<T> {

    private List<T> content = new ArrayList<>();

    private long total;

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        if (content == null) {
            content = new ArrayList<>();
        }
        this.content = content;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

}
